package com.jake.demo.jpa.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@Table(name = "champion")
public class Champion implements Serializable {

    @Id
    private Integer year;

    @ManyToOne
    @JoinColumn(name = "team")
    private Team team;

    @ManyToOne
    @JoinColumn(name = "fmvp")
    private Player fmvp;
}
